.class Llt/noframe/gpsfarmguide/sprayer/SprayController$3;
.super Ljava/lang/Object;
.source "SprayController.java"

# interfaces
.implements Lcom/google/android/gms/maps/LocationSource$OnLocationChangedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/sprayer/SprayController;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/sprayer/SprayController;)V
    .locals 0

    .line 341
    iput-object p1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLocationChanged(Landroid/location/Location;)V
    .locals 5

    .line 345
    new-instance v0, Lcom/google/android/gms/maps/model/LatLng;

    invoke-virtual {p1}, Landroid/location/Location;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p1}, Landroid/location/Location;->getLongitude()D

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/android/gms/maps/model/LatLng;-><init>(DD)V

    .line 346
    iget-object v1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->access$300(Llt/noframe/gpsfarmguide/sprayer/SprayController;)Lcom/google/android/gms/maps/model/Marker;

    move-result-object v1

    if-nez v1, :cond_0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v2

    iget-object v3, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-static {v3}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->access$400(Llt/noframe/gpsfarmguide/sprayer/SprayController;)Lcom/google/android/gms/maps/model/MarkerOptions;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/google/android/gms/maps/model/MarkerOptions;->position(Lcom/google/android/gms/maps/model/LatLng;)Lcom/google/android/gms/maps/model/MarkerOptions;

    invoke-virtual {v2, v3}, Lcom/google/android/gms/maps/GoogleMap;->addMarker(Lcom/google/android/gms/maps/model/MarkerOptions;)Lcom/google/android/gms/maps/model/Marker;

    move-result-object v0

    invoke-static {v1, v0}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->access$302(Llt/noframe/gpsfarmguide/sprayer/SprayController;Lcom/google/android/gms/maps/model/Marker;)Lcom/google/android/gms/maps/model/Marker;

    goto :goto_0

    .line 348
    :cond_0
    iget-object v1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->access$300(Llt/noframe/gpsfarmguide/sprayer/SprayController;)Lcom/google/android/gms/maps/model/Marker;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/google/android/gms/maps/model/Marker;->setPosition(Lcom/google/android/gms/maps/model/LatLng;)V

    .line 350
    :goto_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/sprayer/SprayController;->time:Llt/noframe/gpsfarmguide/TestTimeUtility;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/TestTimeUtility;->start()V

    .line 351
    iget-object v0, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    iput-object p1, v0, Llt/noframe/gpsfarmguide/sprayer/SprayController;->location:Landroid/location/Location;

    .line 352
    new-instance v0, Lcom/google/android/gms/maps/model/LatLng;

    invoke-virtual {p1}, Landroid/location/Location;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p1}, Landroid/location/Location;->getLongitude()D

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/android/gms/maps/model/LatLng;-><init>(DD)V

    .line 353
    iget-object p1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->pointEntered(Lcom/google/android/gms/maps/model/LatLng;)V

    .line 354
    iget-object p1, p0, Llt/noframe/gpsfarmguide/sprayer/SprayController$3;->this$0:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/sprayer/SprayController;->time:Llt/noframe/gpsfarmguide/TestTimeUtility;

    const-string v0, "Sprayed in millis :"

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/TestTimeUtility;->finishToCatLog(Ljava/lang/String;)V

    return-void
.end method
